@layout("/common/_form.html",{js:["/assets/storage/storage_add.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">入库|出库|移库</span>
</div>
<div class="alert alert-success" role="alert">当前操作是：
    <div class="layui-inline">
        <span id="statusDesc" class="layui-badge layui-bg-green">无</span>
    </div>
</div>

<form class="layui-form" id="storageForm" lay-filter="storageForm">

    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div>
<!--                <button type="reset" class="layui-btn layui-btn" id="backup">&emsp;返回&emsp;</button>-->
            </div>
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body" id="body_form">
                <div class="layui-form-item layui-row">
                    <input name="storageId" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">执行人</label>
                        <div class="layui-input-block">
                            <input id="worker" name="worker" type="hidden" class="layui-input"/>
                            <select name="worker" id="workerSelect"
                                    lay-filter="workerSelect">

                            </select>

                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">目标养殖池</label>
                        <div class="layui-input-block">
                            <input id="poodId" name="poodId" type="hidden" class="layui-input"/>
                            <select name="poodId" id="poodSelect"
                                    lay-filter="poodSelect">

                            </select>

                        </div>
                    </div>

                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <input id="remark" name="remark" placeholder="请输入备注" type="text" class="layui-input"/>
                        </div>
                    </div>

                    <div id="materielForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">选择物料</span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">选择物料</label>
                            <div class="layui-input-block">
                                <select name="materielIds" xm-select="materielSelect">
                                    <option value="">选择物料</option>
                                </select>
                            </div>
                        </div>
                        <div id="materielsItemList"></div>
                    </div>

                    <!--     产品转自产   -->
                    <div id="productForm">
                        <div class="layui-form toolbar">
                            <div class="layui-form-item">
                                <div class="layui-inline">
                                    <span class="layui-badge layui-bg-green">产品转自产</span>
                                </div>
                            </div>
                        </div>

                        <div class="layui-inline layui-col-md12">
                            <label class="layui-form-label">选择产品</label>
                            <div class="layui-input-block">
                                <select name="productIds" xm-select="productSelect">
                                    <option value="">请选择产品</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div id="productItemList"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" id="saveButton" type="button" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="backupPage">&emsp;返回&emsp;</button>
    </div>

</form>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>

@}